package com.samshow.service;

import com.samshow.baseVo.CaptionRequest;
import com.samshow.baseVo.DeleteCaptionRequest;
import onbon.bx05.file.ControllerConfigBxFile;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Created by niwb on 2017/2/24.
 */
@Component
public class BxServiceFallback implements BxClient {
    private Logger log = LoggerFactory.getLogger(this.getClass());
    @Override
    public boolean sendCaption(@RequestBody CaptionRequest captionRequest) {
        log.info("THIS FALL BACK sendCaption");
        return true;
    }

    @Override
    public boolean setScreen(@RequestParam("netIds")String netIds, @RequestBody ControllerConfigBxFile bxFile) {
        log.info("THIS FALL BACK setScreen");
        return true;
    }

    @Override
    public boolean deletProgram(@RequestBody List<DeleteCaptionRequest> deleteCaptionRequest) {
        log.info("THIS FALL BACK deletProgram");
        return true;
    }

    @Override
    public boolean addProgram(@PathVariable("userId") String userId, @RequestBody CaptionRequest captionRequest) {
        return false;
    }

    @Override
    public boolean sendCaptionSingle(String netId, String pId) {
        return false;
    }
}
